﻿//This file is part of the Generic Database Accessor Library (GDALib) project
//Copyright (C) 2009 Gentea Alexandru <in.10se@yahoo.com>
//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU Lesser General Public
//License as published by the Free Software Foundation; either
//version 2.1 of the License, or (at your option) any later version.
//
//This library is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//Lesser General Public License for more details.
//
//You should have received a copy of the GNU Lesser General Public
//License along with this library; if not, write to the Free Software
//Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
using System;
using System.Data;

namespace GDALib
{
    class BulkExecParameter
    {
        String commandTemplate;
        Nullable<IsolationLevel> isolationLevel;
        Nullable<bool> endOnException;

        public String CommandTemplate
        {
            get { return commandTemplate; }
        }

        public Nullable<IsolationLevel> IsolationLevel
        {
            get { return isolationLevel; }
        }

        public Nullable<bool> EndOnException
        {
            get { return endOnException; }
        }

        public BulkExecParameter(String commandTemplate, Nullable<IsolationLevel> isolationLevel, Nullable<bool> endOnException)
        {
            this.commandTemplate = commandTemplate;
            this.isolationLevel = isolationLevel;
            this.endOnException = endOnException;
        }
    }
}
